<template>
  <el-card class="page-tools">
    <el-row type="flex" justify="space-between">
      <el-col>
        <div v-if="showBefore" class="before">
          <span>
            <!-- 通过before插槽插入左边内容 -->
            <slot name="before" />
          </span>
        </div>

      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <!-- 通过after插槽插入右边内容 -->
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
    <div class="el-divider el-divider--horizontal" />
    <span>
      <slot name="bottom" />
    </span>
    <div class="el-divider el-divider--horizontal" />
    <span>
      <slot name="center" />
    </span>
  </el-card>
</template>

<script>
export default {
  props: {
    showBefore: {
      type: Boolean,
      default: true
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
